package com.banciyuan.bcywebview.biz.main.group.focused;

import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.LinearLayout;

import com.banciyuan.bcywebview.R;
import com.banciyuan.bcywebview.base.activity.BaseActivity;
import com.banciyuan.bcywebview.base.helper.ActionbarHelper;

/**
 * Created by squall on 2017/5/16.
 */

public class FocusedGroupActivity extends BaseActivity {

    private LinearLayout container;

    private View mActionBarView;
    private ActionbarHelper mActionbarHelper;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_container);
        initActionbar();
        initArgs();
        initUi();
    }

    @Override
    protected void initActionbar() {
        mActionBarView = findViewById(R.id.base_action_bar);
        mActionbarHelper = new ActionbarHelper(this, mActionBarView);
        mActionbarHelper.setTitle(getString(R.string.team_unfollow));
    }

    @Override
    protected void initUi() {
        container = (LinearLayout) findViewById(R.id.fragment_container);
        FocusedGroupFragment focusedGroupFragment = new FocusedGroupFragment();
        FragmentManager fm = getSupportFragmentManager();
        FragmentTransaction fts = fm.beginTransaction();
        fts.add(R.id.fragment_container, focusedGroupFragment);
        fts.show(focusedGroupFragment);
        fts.commit();

    }


    @Override
    protected void onSaveInstanceState(Bundle outState) {

    }
}
